package com.atguigu.eduservice.client;


import com.atguigu.eduservice.client.impl.OrderFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author LHL
 * @Date 23-3-7-0007 14:09
 * @注释
 */

@Component
@FeignClient(value = "service-order", fallback = OrderFeignClient.class)
public interface OrderClient {
    @GetMapping("/edeorder/order/isBuyCourse/{courseId}/{memberId}")
    public boolean isBuyCourse(@PathVariable("courseId") String courseId, @PathVariable("memberId") String memberId);
}
